package org.ix.shiro.service;

import io.jsonwebtoken.Claims;
import io.jsonwebtoken.ExpiredJwtException;

import java.util.Map;

public interface JwtService {

    String createToken(String username);

    String createToken(String username, Map<String, Object> claims);

    Claims parseToken(String token) throws ExpiredJwtException;
}
